package br.edu.utfpr.backupTools.view.action.strategy.impl;

import br.edu.utfpr.backupTools.controller.ControladorBackupImpl;
import br.edu.utfpr.backupTools.controller.interfaces.ControladorBackup;
import br.edu.utfpr.backupTools.controller.validator.BackupValidator;
import br.edu.utfpr.backupTools.model.dao.DaoBackupImpl;
import br.edu.utfpr.backupTools.model.dao.interfaces.DaoBackup;
import br.edu.utfpr.backupTools.model.pojo.Backup;
import br.edu.utfpr.backupTools.view.action.strategy.AbstractBackup;
import br.edu.utfpr.backupTools.view.action.strategy.iterfaces.GerarBackup;
import br.edu.utfpr.comum.RetornoValidacao;

public class GerarBackupLocal extends AbstractBackup implements GerarBackup{

    @Override
    public RetornoValidacao gerarBackup(Backup bean) {
        return controlador.gerarBackup(bean, true);
    }

    @Override
    public RetornoValidacao gerarTodosBackups() {
        return controlador.gerarTodosBackups();
    }

}
